<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../dist/vue.js"></script>
    <!-- <script src="./kvue-1.0.js"></script> -->
  </head>
  <body>
    <div id="app">
      <p>{{name}}</p>
    </div>
    <script>
      const app = new Vue({
        el: "#app",
        data() {
          return {
            name: "jack",
          };
        },
        mounted() {
          this.name = "tom";
          this.name = "jerry";

          Promise.resolve().then(() => {
            let dom = document.querySelector("#app");
            console.log('promise',dom.innerHTML);
          })
          this.$nextTick(() => {
            let dom = document.querySelector("#app");
            console.log('nextTick',dom.innerHTML);
          });

          
          // [() => {flushSchedulerQueue()}, ()=>{customFunc()}  ]
        },
      });
    </script>
  </body>
</html>
